package cn.edu.swust.adressbook.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

import java.io.Serializable;

@Entity
public class Contact  implements Serializable {
    @Id(autoincrement = true)
    private Long id;             //联系人编号
    private Integer headImageId; //头像id
    private String name;         //名字
    private String pinyin;       //拼音
    private String company;      //公司
    private String notes;        //备注
    private Long groupId;        //分组id  没有分组为 null
    private String placeOfCall;  //来电位置
    private String phoneNumber;  //手机号码
    private String personalEmail;//个人邮箱
    private Integer ringId;      //手机铃声
    public Integer getRingId() {
        return this.ringId;
    }
    public void setRingId(Integer ringId) {
        this.ringId = ringId;
    }
    public String getPersonalEmail() {
        return this.personalEmail;
    }
    public void setPersonalEmail(String personalEmail) {
        this.personalEmail = personalEmail;
    }
    public String getPhoneNumber() {
        return this.phoneNumber;
    }
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
    public String getPlaceOfCall() {
        return this.placeOfCall;
    }
    public void setPlaceOfCall(String placeOfCall) {
        this.placeOfCall = placeOfCall;
    }
    public Long getGroupId() {
        return this.groupId;
    }
    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }
    public String getNotes() {
        return this.notes;
    }
    public void setNotes(String notes) {
        this.notes = notes;
    }
    public String getCompany() {
        return this.company;
    }
    public void setCompany(String company) {
        this.company = company;
    }
    public String getPinyin() {
        return this.pinyin;
    }
    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Integer getHeadImageId() {
        return this.headImageId;
    }
    public void setHeadImageId(Integer headImageId) {
        this.headImageId = headImageId;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Generated(hash = 1060329989)
    public Contact(Long id, Integer headImageId, String name, String pinyin,
            String company, String notes, Long groupId, String placeOfCall,
            String phoneNumber, String personalEmail, Integer ringId) {
        this.id = id;
        this.headImageId = headImageId;
        this.name = name;
        this.pinyin = pinyin;
        this.company = company;
        this.notes = notes;
        this.groupId = groupId;
        this.placeOfCall = placeOfCall;
        this.phoneNumber = phoneNumber;
        this.personalEmail = personalEmail;
        this.ringId = ringId;
    }
    @Generated(hash = 672515148)
    public Contact() {
    }

    @Override
    public String toString() {
        return "Contact{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pinyin='" + pinyin + '\'' +
                ", groupId=" + groupId +
                '}';
    }
}
